home *** CD-ROM | disk | FTP | other *** search
/ ftp.sustworks.com 2018 / ftp.sustworks.com.zip / ftp.sustworks.com / IPNetSentry_12.hqx / IPNetSentry_12 / IPNetSentry AppleScripts / IPNS OE AppleScript < prev    next >
Text File  |  2000-12-21  |  865b  |  24 lines

  1. -- first get the trigger info from IPNetSentry
  2. tell application "IPNetSentry.PPC"
  3.     set theTriggerIPAddress to triggeripaddress
  4.     set theTriggerPort to triggerport
  5.     set theTriggerProtocol to triggerprotocol
  6.     set theTriggerService to triggerservice
  7.     set theTriggerTime to triggertime
  8.     set theTriggerDate to triggerdate
  9.     set myNotification to "IPNetSentry trigger
  10. Remote IP Address: " & theTriggerIPAddress & "
  11. Port: " & theTriggerPort & "
  12. Protocol: " & theTriggerProtocol & "
  13. Service: " & theTriggerService & "
  14. Time: " & theTriggerTime & "
  15. Date: " & theTriggerDate
  16. end tell
  17. -- now send it to us via Outlook Express
  18. tell application "Outlook Express"
  19.     set rcp to "TO_EMAIL_ADDRESS"
  20.     set sbj to "IPNetSentry Trigger Alert"
  21.     set msg to myNotification
  22.     set theMsg to make new draft window with properties {to recipients:rcp, subject:sbj, content:msg}
  23.     send theMsg
  24. end tell